/**
 * 
 */
package de.cbf.cam.dsa.facet.armor.editor;

import static de.cbf.cam.dsa.facet.armor.test_support.ConstantsSWTBOTArmor.ARMOR_FACET_EDIT_SECTION_TBAR_TGLBT_ACTIVATION;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;

import de.cbf.util.entity.facet.edit.composites.factorys.AbstractFacetSectionFactory;

/**
 * @author Nebelritter
 *
 */
public class SectionFactoryArmor extends AbstractFacetSectionFactory {

	protected static final String SECTION_TITLE = "Armor Section";
	/* (non-Javadoc)
	 * @see de.cbf.util.entity.facet.edit.composites.factorys.AbstractFacetSectionFactory#createCompositeFacet(org.eclipse.ui.forms.widgets.Section, org.eclipse.ui.forms.widgets.FormToolkit)
	 */
	@Override
	protected Composite createCompositeFacet(Section section,
			FormToolkit toolkit) {
		Composite categoryComposite = new CompositeEditArmor(section, SWT.DOUBLE_BUFFERED,toolkit);
		toolkit.adapt(categoryComposite);
		return categoryComposite;		
	}

	/* (non-Javadoc)
	 * @see de.cbf.util.entity.facet.edit.composites.factorys.AbstractFacetSectionFactory#getSetionTitle()
	 */
	@Override
	protected String getSetionTitle() {		
		return SECTION_TITLE;
	}

	/* (non-Javadoc)
	 * @see de.cbf.util.entity.facet.edit.composites.factorys.AbstractFacetSectionFactory#getActivationButtonTestID()
	 */
	@Override
	protected String getActivationButtonTestID() {		
		return ARMOR_FACET_EDIT_SECTION_TBAR_TGLBT_ACTIVATION;
	}

}
